Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: Telephony /
Chapter 3 - Directory Numbers / Directory Number Reference
Directory Number Functions / Finding Directory Numbers


TELCountDNs

Counts the directory numbers associated with a telephone terminal.

pascal short TELCountDNs (
                     TELHandle hTEL, 
                     short dnType, 
                     Boolean physical);
hTEL
A handle to a telephone record.
dnType
A type of directory number. See "Directory Number Types" on page 3-6 for a description of the available directory number types.
physical
A Boolean value that determines whether TELCountDNs counts all directory numbers (true) or only those to which commands can be sent (false).
function result
The number of directory numbers of the specified type currently associated with the terminal.
DESCRIPTION
The TELCountDNs function returns, as its function result, the number of directory numbers associated with the terminal specified by the hTEL parameter that have the type specified by the dnType parameter. If the physical parameter is true, TELCountDNs counts all directory numbers associated with that terminal, even those that are currently inaccessible (as indicated by the dnAccessible field of the directory number structure). If physical is false, TELCountDNs counts only those directory number that are currently accessible.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help